package com.asgard.constant;

/**
 * 证书子角色。
 */
public enum SubRoleEnum {

    ROOT(RoleEnum.ROOT),
    VP(RoleEnum.CONNECTION),
    NVP(RoleEnum.CONNECTION),
    TOKEN_ISSUER(RoleEnum.TRANSACTION),
    TOKEN_CONSUMER(RoleEnum.TRANSACTION),
    FACT_PRODUCER(RoleEnum.TRANSACTION);

    private RoleEnum role;

    SubRoleEnum(RoleEnum role) {
        this.role = role;
    }

    public RoleEnum getRole() {
        return role;
    }
}

